package zj.xinxin.api.moudle.security.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author junzhou
 * @date 2022/3/23 16:27
 * @since 1.8
 */
@Data
public class ConsumerInfoDto {

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "用户账号（第三方token）")
    private String username;

    @ApiModelProperty(value = "用户昵称")
    private String nickname;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @ApiModelProperty(value = "用户电话")
    private String phoneNum;

    @ApiModelProperty(value = "用户性别")
    private String gender;

    @ApiModelProperty(value = "登陆类型（1 邮箱 2账号密码 3QQ）")
    private String loginType;

    @ApiModelProperty(value = "最后登陆时间")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date lastLoginTime;

    @ApiModelProperty(value = "登陆ip")
    private String loginIp;

    @ApiModelProperty(value = "登陆地区")
    private String loginAddress;

    @ApiModelProperty(value = "操作系统")
    private String os;

    @ApiModelProperty(value = "浏览器")
    private String browser;

    @ApiModelProperty(value = "角色列表")
    private List<RoleDto> roleList;

    @ApiModelProperty(value = "最高权限角色")
    private String consumerLevel;

    @ApiModelProperty(value = "是否被禁用")
    private Boolean isDisable;

    @ApiModelProperty(value = "备注信息")
    private String remark;
}
